package com.situ.personal.entity;

import java.util.ArrayList;

public class PageInfo<T> {
	
	private ArrayList<T> list;
	private int totalPage;
	private int pageNo;
	private int pageSize;
	
	public PageInfo() {
		super();
	}
	
	public PageInfo(ArrayList<T> list, int totalPage, int pageNo, int pageSize) {
		super();
		this.list = list;
		this.totalPage = totalPage;
		this.pageNo = pageNo;
		this.pageSize = pageSize;
	}

	public ArrayList<T> getList() {
		return list;
	}
	public void setList(ArrayList<T> list) {
		this.list = list;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	@Override
	public String toString() {
		return "PageInfo [list=" + list + ", totalPage=" + totalPage + ", pageNo=" + pageNo + ", pageSize=" + pageSize
				+ "]";
	}
	
	
	
}
